
package com.bei_en.teacher.admin.model.forecast.vo;

import java.util.*;
import com.bei_en.teacher.admin.model.forecast.bean.Forecast;
import com.bei_en.teacher.admin.model.BaseVo;
import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import java.math.BigDecimal;

/**
 * 用于前端页面数据传递
 * 
 * @author Guocg
 * @date 2016-10-8 21:41:38
 */
public class ForecastVo extends BaseVo {

    private Forecast forecast;

    public ForecastVo() {

    this.forecast = new Forecast();
    }

    public ForecastVo(Forecast forecast) {

    this.forecast = forecast;
    }
    
    public Forecast getForecast() {

    return this.forecast;
    }
    
    public void setForecast(Forecast forecast) {

    this.forecast=forecast;
    }

        public Integer getId() {
            return this.forecast.getId();
        }
        public void setId(Integer id) {
            this.forecast.setId(id);
        }
        

        
        public void setUserId(Integer value) {
    	this.forecast.setUserId(value);
        }
	
    public Integer getUserId() {
        return this.forecast.getUserId();
    }
        
        public void setFraction(Double value) {
    	this.forecast.setFraction(value);
        }
	
    public Double getFraction() {
        return this.forecast.getFraction();
    }
        
        public void setTypeId(Integer value) {
    	this.forecast.setTypeId(value);
        }
	
    public Integer getTypeId() {
        return this.forecast.getTypeId();
    }
        
    public void setCreateTime(Date value) {
        this.forecast.setCreateTime(value!=null ? (int) (value.getTime()/1000) : 0);
    }

	 public Date getCreateTime() {
	     Integer time=this.forecast.getCreateTime();
	     if (time!=null&&time!=0)
		    return new Date(Long.valueOf(time)*1000);
		else
		    return null;
	    }
    


}